package com.example;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
//扫描所有的mapper接口类
/**
 * 就不需要在mapper里每个接口都加上@Mapper进行注解
 */
@MapperScan("com.example.mapper")//对应自己Java下的mapper包的地址，就是最刚开始新建的
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

}
